/**
 * 
 */
package com.qf.service.impl;

import java.util.List;

import com.qf.dao.UserDao;
import com.qf.domain.User;
import com.qf.service.UserService;

/**
 * @author 123
 * 
 */
public class UserServiceImpl implements UserService {

	private UserDao userDao;

	public Integer add(User user) {
		return this.userDao.add(user);
	}

	public List listAll() {
		return this.userDao.listAll();
	}

	public User login(String userName, String password) {
		return this.userDao.login(userName, password);
	}

	public UserDao getUserDao() {
		return userDao;
	}

	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

}
